package day03_ThreadPool.demo_network_Socket.TCP_ChatView;

import java.net.ServerSocket;
import java.net.Socket;

public class Server {
    public static void main(String[] args) throws Exception{
        ServerSocket serverSocket= new ServerSocket(10001);
        System.out.println("开始与client建立连接...");
        while (true){
            Socket socket=serverSocket.accept();
            System.out.println(socket.getInetAddress()+"连接成功");
        }
    }
}
